package thread;

import java.util.Scanner;

public class Split {

	public static void main(String[] args) {
		System.out.println("Nhap vao 1 chuoi: ");
		//Scanner nhap = new Scanner(System.in);
		//String str = nhap.nextLine();
		String str="anh|nga";
		String[] s = str.split("|");
		for(int i=0; i<s.length; i++){
			System.out.println(s[i]);
		}
	}
}
